<?php


namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\App;
class SetLocale
{
    public function handle($request, Closure $next)
    {
        // 强制设置中文
        App::setLocale('zh_CN');

        return $next($request);
    }
}
